ComponentOne Xamarin Edition
CanSort<T>(ICollectionView<T>,String,SortDirection) Method
C1.CollectionView Assembly > C1.CollectionView Namespace > ICollectionViewEx Class > CanSort Method : CanSort<T>(ICollectionView<T>,String,SortDirection) Method
The collection view.
The path of the data item to which the sort would be applied.
Whether the sort is ascending or descending.
Returns true if the collection view supports sorting.
Syntax
[Extension()]
public static bool CanSort<T>( 
   ICollectionView<T> collectionView,
   string sortPath,
   SortDirection direction
)
where T: class

Parameters

collectionView
The collection view.
sortPath
The path of the data item to which the sort would be applied.
direction
Whether the sort is ascending or descending.

Type Parameters

T
See Also

Reference

ICollectionViewEx Class
ICollectionViewEx Members
Overload List